//
//  RecentRecordCell.m
//  MUBATE
//
//  Created by sunbin on 2017/2/21.
//  Copyright © 2017年 Quanli. All rights reserved.
//

#import "RecentRecordCell.h"
#import "RecentRecordModel.h"

@interface RecentRecordCell()


@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *money;

@end

@implementation RecentRecordCell

- (void)awakeFromNib {
    [super awakeFromNib];


}

-(void)setModel:(RecentRecordModel *)model{
    _model = model;
    _name.text  = model.name;
    _time.text  = model.timer;
    _money.text = [NHUtils moneyWithInterge:[model.affect_money floatValue]];

}

- (void)newMessageData:(NSDictionary *)dic model:(YUserInfo *)userInfor{
    NSString *type = IF_NULL_TO_STRING([dic objectForKey:@"newmessagety"]);
    _name.text  = [type isEqualToString:@"1"]?userInfor.company_name:@"共享返现";
    _time.text  = IF_NULL_TO_STRING([dic objectForKey:@"time"]);
    _money.text = [NHUtils moneyWithInterge:[IF_NULL_TO_STRING([dic objectForKey:@"money"]) floatValue]];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
